Thread: [resolved] internal compiler error...

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Aug 2008
    Posts
    188

    [resolved] internal compiler error...

    i'm using .net2003 and the compiler is giving me an internal compiler error when i try to create a template class. here is the code:

    Code:
    namespace NS
    {
        template <typename T>
        class A
        {
        public:
            A();
    
            void Insert(const T& t);
        };
    }
    
    namespace NS
    {
        template <typename T>
        A<T>::Insert(const T& t)
        {
        }
        template <typename T>
        A<T>::A()
        {
        }
    }
    that's all it takes for the compiler to poop out. i took this code out and put it into an empty project, and it compiles fine... if i comment this code out in the original project, it fails to compiler. uncomment, compiler fails.

    i'm at a loss of how to troubleshoot this. any help is appreciated. thanks.

    EDIT: sorry i jumped the gun...i didn't have the 'void' keyword for the return type in the implementation.
    Last edited by bling; 12-10-2008 at 12:21 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Errors including <windows.h>
    By jw232 in forum Windows Programming
    Replies: 4
    Last Post: 07-29-2008, 01:29 PM
  2. Making C DLL using MSVC++ 2005
    By chico1st in forum C Programming
    Replies: 26
    Last Post: 05-28-2008, 01:17 PM
  3. DX - CreateDevice - D3DERR_INVALIDCALL
    By Tonto in forum Game Programming
    Replies: 3
    Last Post: 12-01-2006, 07:17 PM
  4. using c++ in c code
    By hannibar in forum C Programming
    Replies: 17
    Last Post: 10-28-2005, 09:09 PM
  5. ras.h errors
    By Trent_Easton in forum Windows Programming
    Replies: 8
    Last Post: 07-15-2005, 10:52 PM